<?php
    namespace modules;
    class system extends \framework\module
    {
        public function __construct()
        {
            parent::__construct();
        }
        public function login()
        {
            if($this -> request)
            {
                if(\model\master\companiesLogins::checkLogin($this -> request['company']) && \model\company\usersLogins::checkLogin($this -> request['login'], $this -> request['password'], $this -> request['company']))
                {
                    echo 'si';
                }
                else
                {
                    echo 'no';
                }
            }
        }
    }